package com.shop2cn.iapi.sellerpromotion.parameter;
import java.math.BigDecimal;
import java.util.List;

import org.apache.poi.poifs.storage.ListManagedBlock;

import com.ymt.base.BaseBean;
/**
*满减规则
*FreeMaker Template自动生成代码
*/
public class PromotionItem extends BaseBean{
	public PromotionItem() {}
	/**
	 * @param lv level 层级
	 * @param uc useCondition 使用条件
	 * @param value value 促销值
	 */
	public PromotionItem(Integer lv,Integer uc,Double value) {
		this.level=lv;
		this.useCondition=BigDecimal.valueOf(uc);
		this.value=BigDecimal.valueOf(value);
	}
	
	public PromotionItem(Integer lv,Integer uc,Double value,boolean ff,List<String> rg) {
		this.level=lv;
		this.useCondition=BigDecimal.valueOf(uc);
		this.value=BigDecimal.valueOf(value);
		this.freeFreight=ff;
		this.freeRegions=rg;
	}
	/**层级*/
	private Integer level;
  	/**
	 * @see com.shop2cn.iapi.sellerpromotion.parameter.PromotionItem#level
	 */
	public Integer getLevel(){
 
		return level;
 
	}
 	/**
	 * @see com.shop2cn.iapi.sellerpromotion.parameter.PromotionItem#level
	 */
	public void setLevel(Integer level){
 
		this.level = level;
 
	}
	/**使用条件*/
	private BigDecimal useCondition;
  	/**
	 * @see com.shop2cn.iapi.sellerpromotion.parameter.PromotionItem#useCondition
	 */
	public BigDecimal getUseCondition(){
 
		return useCondition;
 
	}
 	/**
	 * @see com.shop2cn.iapi.sellerpromotion.parameter.PromotionItem#useCondition
	 */
	public void setUseCondition(BigDecimal useCondition){
 
		this.useCondition = useCondition;
 
	}
	/**促销值*/
	private BigDecimal value;
  	/**
	 * @see com.shop2cn.iapi.sellerpromotion.parameter.PromotionItem#value
	 */
	public BigDecimal getValue(){
 
		return value;
 
	}
 	/**
	 * @see com.shop2cn.iapi.sellerpromotion.parameter.PromotionItem#value
	 */
	public void setValue(BigDecimal value){
 
		this.value = value;
 
	}
	
	
	
	/**是否满包邮*/
	private Boolean freeFreight;
	public Boolean getfreeFreight(){
		return freeFreight;
	}
	public void setfreeFreight(Boolean freeFreight){
		this.freeFreight = freeFreight;
	}
	
	/**包邮区域，空表示全国包邮*/
	private List<String> freeRegions;
	public List<String> getFreeRegions(){
		return freeRegions;
	}
	public void setFreeRegions(List<String> freeRegions){
		this.freeRegions = freeRegions;
	}
}
